# 用cookie登录
from selenium import webdriver
from time import sleep

driver = webdriver.Chrome()
driver.implicitly_wait(10)
driver.maximize_window()
driver.get("https://minsu.dianping.com/?logout=1")

# 先删除cookies
driver.delete_all_cookies()

'''
    如何获取有效的cookies：
        在浏览器安装EditThitCookie
        登入web端后
        打开EditThitCookie，点击[→（Export）导出cookies
        复制到txt，ctrl+f查找并替换为：
            "sameSite": "None"
            False
            True
'''
cookies =

# 添加cooklies
for cookie in cookies:
    driver.add_cookie(cookie)

driver.refresh()
sleep(5)

driver.quit()